package com.unite.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;

import com.unite.unsns2.R;

public class ListViewAdapter extends BaseAdapter {

	private Context context;
	private String[] plans;
	public ListViewAdapter(Context context,String[] plans) {
		this.context = context;
		this.plans = plans;
	}
	@Override
	public int getCount() {
		return 3;
	}

	@Override
	public Object getItem(int arg0) {
		return null;
	}

	@Override
	public long getItemId(int arg0) {
		return 0;
	}

	@Override
	public View getView(int arg0, View arg1, ViewGroup arg2) {
		View view=View.inflate(context, R.layout.lc_listview_item, null);
		TextView tv_plan = (TextView) view.findViewById(R.id.tv_plan);
		tv_plan.setText(plans[arg0]);
		return view;
	}

}
